package com.sys.entity;

import java.util.Date;

import com.bhudy.annotation.PrimaryKey;

/**
 * @Author com.bhudy
 * @Description SysCrontab实体类
 * @Date Mon Nov 04 14:28:07 CST 2019
 */
public class SysCrontab {

    public static final String JOB_NAME = "jobName";
    public static final String CRONTAB_ID = "ResCrontabId";

    @PrimaryKey
    private Long id;    //Id uuid
    private String name;    //任务名
    private String cronTime;    //cron表达式时间
    private Integer isOpen;    //是否打开
    private Integer isSystem;    //0 是系统自带任务 1是其他用户创建
    private Integer isRepeat;    //是否有配置cron 表达式 是否重复执行 0执行一次 1有cron表达需要重复执行
    private Date startTime;    //当前任务开始时间
    private Long sysCrontabTypeId;    //任务类型id
    private Integer taskStatus;    //任务执行状态 ： 0 正常 1 异常 2 执行中
    private Integer status;    //状态（0正常 1删除 2停用 3冻结）
    private Long createBy;    //创建者
    private Date createDate;    //创建时间
    private Long updateBy;    //更新者
    private Date updateDate;    //更新时间
    private String remark;    //备注信息

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
     }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
     }

    public String getCronTime() {
        return cronTime;
    }

    public void setCronTime(String cronTime) {
        this.cronTime = cronTime;
     }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
     }

    public Integer getIsSystem() {
        return isSystem;
    }

    public void setIsSystem(Integer isSystem) {
        this.isSystem = isSystem;
     }

    public Integer getIsRepeat() {
        return isRepeat;
    }

    public void setIsRepeat(Integer isRepeat) {
        this.isRepeat = isRepeat;
     }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
     }

    public Long getSysCrontabTypeId() {
        return sysCrontabTypeId;
    }

    public void setSysCrontabTypeId(Long sysCrontabTypeId) {
        this.sysCrontabTypeId = sysCrontabTypeId;
     }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
     }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
     }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
     }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
     }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
     }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
     }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
     }

}
